package com.dj.msgtable.serviceimpl;

import com.dj.msgtable.dao.CustomMapper;
import com.dj.msgtable.dao.UserMapper;
import com.dj.msgtable.entity.Custom;
import com.dj.msgtable.entity.User;
import com.dj.msgtable.service.CustomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CustomServiceImpl implements CustomService {


    @Autowired
    CustomMapper cm;

    @Override
    public List<Custom> searchAllCustom() {
       return cm.searchAllCustom();
    }

    @Override
    public Custom searchCustombyPhone(Custom custom) {
        return cm.searchCustombyPhone(custom);
    }

    @Override
    public void addCustomNof(Custom custom) {
        cm.addCustomNof(custom);
    }

    @Override
    public void addCustomHavef(Custom custom) {

        cm.addCustomHavef(custom);
    }


    @Override
    public List<Custom> searchCustomNoFollow() {
        return cm.searchCustomNoFollow();
    }

    @Override
    public void addFollowUser(Custom custom) {
        cm.addFollowUser(custom);
    }

    @Override
    public List<Custom> searchSelfList(User user) {
        return cm.searchSelfList(user);
    }

    @Override
    public void changeState(Custom custom) {
        cm.changeState(custom);
    }

    @Override
    public Custom searchOne(Custom custom) {
        return cm.searchOne(custom);
    }
    @Override
    public void changeState2(Custom custom) {
        cm.changeState2(custom);
    }

    @Override
    public void deleteCus() {
        cm.deleteCus();
    }

}
